<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div id="qs"></div>
    <script src="./src/react.js"></script>
    <!-- react 库 -->
    <script src="./src/react-dom.js"></script>
    <!-- dom 库 -->
    <script src="./src/babel.js"></script>
    <!-- babel 库 -->
    <script type="text/babel">
        // xml 语法
        let h1Dom = <h1> hello world </h1>
        // 创建dom
        ReactDOM.render(//渲染选项
            h1Dom,//第一个参数
            document.getElementById("qs")//渲染至该元素
        )
    </script>
</body>

</html>